package people.paper.tv.speech;

public interface SpeechCore {
    interface SpeechCoreListener {
        void onStart(int id);

        void onPlaying(int id, String text, int progress);

        void onStop(int id);

        void onComplete(int id);
    }

    void setSpeechCoreListener(SpeechCoreListener listener);

    int play(String text);

    int getPlayingID();

    boolean isPlaying();

    void pause(int id);

    boolean isPaused();

    void resume(int id);

    boolean stop(int id);

    void release();
}
